<html>
<head>
<title>Docs for page player.lib.php</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">Game_library</td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
        
                                                                            
                                                                                                              		  [ <a href="../classtrees_Game_library.html" class="menu">class tree: Game_library</a> ]
		  [ <a href="../elementindex_Game_library.html" class="menu">index: Game_library</a> ]
		  	    [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
      <b>Packages:</b><br />
              <a href="../li_default.html">default</a><br />
              <a href="../li_Database.html">Database</a><br />
              <a href="../li_Game_library.html">Game_library</a><br />
              <a href="../li_Main.html">Main</a><br />
              <a href="../li_Session_library.html">Session_library</a><br />
              <a href="../li_Table_library.html">Table_library</a><br />
              <a href="../li_User_library.html">User_library</a><br />
            <br /><br />
                        <b>Files:</b><br />
      	  <div class="package">
			<a href="../Game_library/_lib---game.lib.php.html">		game.lib.php
		</a><br>
			<a href="../Game_library/_lib---player.lib.php.html">		player.lib.php
		</a><br>
	  </div><br />
      
      
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Procedural File: player.lib.php</h1>
Source Location: /lib/player.lib.php<br /><br />

<br>
<br>


<h2>Page Details:</h2>
This file holds the library functions for player management.<br /><br /><br /><br />
<h4>Includes:</h4>
<div class="tags">
require_once(<a href="../Database/_lib---db.lib.php.html">"lib/db.lib.php"</a>) [line 10]<br />
require_once(<a href="../Table_library/_lib---table.lib.php.html">"lib/table.lib.php"</a>) [line 11]<br />
require_once(<a href="../default/_conf---game.conf.php.html">"conf/game.conf.php"</a>) [line 12]<br />
</div>
<br /><br />
<br /><br />
<br />
  <hr />
	<a name="functionplayer_get_buoy_remain"></a>
	<h3>player_get_buoy_remain <span class="smalllinenumber">[line 228]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>int|FALSE player_get_buoy_remain(
int $game_id, int $user_id, int $round)</code>
    </td></tr></table>
    </td></tr></table><br />

		Get the number of remaining buoys of a user.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>Number of remaining buoys</strong> of user, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$round</b>&nbsp;&nbsp;</td>
        <td>Round of game.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_get_current_points"></a>
	<h3>player_get_current_points <span class="smalllinenumber">[line 390]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>int|FALSE player_get_current_points(
int $game_id, int $user_id)</code>
    </td></tr></table>
    </td></tr></table><br />

		Get the points of a player in a game<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>Game points</strong> of user, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_get_current_waterlevel"></a>
	<h3>player_get_current_waterlevel <span class="smalllinenumber">[line 203]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>int|FALSE player_get_current_waterlevel(
int $game_id, int $user_id, int $round)</code>
    </td></tr></table>
    </td></tr></table><br />

		Get the current waterlevel of a user.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>Current waterlevel</strong> of user, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$round</b>&nbsp;&nbsp;</td>
        <td>Round of game.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_get_hand"></a>
	<h3>player_get_hand <span class="smalllinenumber">[line 252]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>Array|FALSE player_get_hand(
int $game_id, int $user_id, int $round)</code>
    </td></tr></table>
    </td></tr></table><br />

		Get the hand of a user in a round.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>Array containing hand cards</strong> of round, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$round</b>&nbsp;&nbsp;</td>
        <td>Round of game.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_get_hand_played"></a>
	<h3>player_get_hand_played <span class="smalllinenumber">[line 314]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>Array|FALSE player_get_hand_played(
int $game_id, int $user_id, int $round)</code>
    </td></tr></table>
    </td></tr></table><br />

		Get the played cards of a user in a round.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>Array containing hand cards</strong> of round, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$round</b>&nbsp;&nbsp;</td>
        <td>Round of game.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_get_hand_remain"></a>
	<h3>player_get_hand_remain <span class="smalllinenumber">[line 283]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>Array|FALSE player_get_hand_remain(
int $game_id, int $user_id, int $round)</code>
    </td></tr></table>
    </td></tr></table><br />

		Get the remaining hand of a user in a round.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>Array containing hand cards</strong> of round, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$round</b>&nbsp;&nbsp;</td>
        <td>Round of game.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_get_played_card"></a>
	<h3>player_get_played_card <span class="smalllinenumber">[line 347]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>int|FALSE player_get_played_card(
int $game_id, int $user_id, int $round, int $turn)</code>
    </td></tr></table>
    </td></tr></table><br />

		Get card played by a player<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>Card played</strong> by user, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$round</b>&nbsp;&nbsp;</td>
        <td>Round of game.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$turn</b>&nbsp;&nbsp;</td>
        <td>Turn of round.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_get_played_card_auto"></a>
	<h3>player_get_played_card_auto <span class="smalllinenumber">[line 370]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>int|FALSE player_get_played_card_auto(
int $game_id, int $user_id)</code>
    </td></tr></table>
    </td></tr></table><br />

		Get card played by a player. Auto select the current round and turn.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>Card played</strong> by user, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_is_card_valid"></a>
	<h3>player_is_card_valid <span class="smalllinenumber">[line 63]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>bool player_is_card_valid(
int $game_id, int $user_id, int $round, int $turn, int $card)</code>
    </td></tr></table>
    </td></tr></table><br />

		Check if a card can be played in that turn.<br /><br /><p>i.e check if the card have been played, and if that turn has played cards.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>TRUE</strong> if successed, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$round</b>&nbsp;&nbsp;</td>
        <td>Round of game.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$turn</b>&nbsp;&nbsp;</td>
        <td>Turn of the round.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$card</b>&nbsp;&nbsp;</td>
        <td>Card to be played.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_play_card"></a>
	<h3>player_play_card <span class="smalllinenumber">[line 25]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>bool player_play_card(
int $game_id, int $user_id, int $round, int $turn, int $card)</code>
    </td></tr></table>
    </td></tr></table><br />

		Play a card in the player's hand.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>TRUE</strong> if successed, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$round</b>&nbsp;&nbsp;</td>
        <td>Round of game.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$turn</b>&nbsp;&nbsp;</td>
        <td>Turn of the round.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$card</b>&nbsp;&nbsp;</td>
        <td>Card to be played.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_play_card_auto"></a>
	<h3>player_play_card_auto <span class="smalllinenumber">[line 103]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>bool player_play_card_auto(
int $game_id, int $user_id, int $card)</code>
    </td></tr></table>
    </td></tr></table><br />

		Play a card in the player's hand. Will auto set the current round and turn of the game.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>TRUE</strong> if successed, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$card</b>&nbsp;&nbsp;</td>
        <td>Card to be played.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_set_buoy_remain"></a>
	<h3>player_set_buoy_remain <span class="smalllinenumber">[line 177]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>bool player_set_buoy_remain(
int $game_id, int $user_id, int $round, int $buoy_remain)</code>
    </td></tr></table>
    </td></tr></table><br />

		Set the buoy remaining of a player in each turn<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>TRUE</strong> if successed, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$round</b>&nbsp;&nbsp;</td>
        <td>Round of game.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$buoy_remain</b>&nbsp;&nbsp;</td>
        <td>Buoy remaining in the current turn.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_set_turn"></a>
	<h3>player_set_turn <span class="smalllinenumber">[line 148]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>bool player_set_turn(
int $game_id, int $round, int $turn)</code>
    </td></tr></table>
    </td></tr></table><br />

		Set the turn of all players in a round<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>TRUE</strong> if successed, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$round</b>&nbsp;&nbsp;</td>
        <td>Round of game.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$turn</b>&nbsp;&nbsp;</td>
        <td>Turn of the round.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>
  <hr />
	<a name="functionplayer_set_waterlevel"></a>
	<h3>player_set_waterlevel <span class="smalllinenumber">[line 122]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>bool player_set_waterlevel(
int $game_id, int $user_id, int $round, int $waterlevel)</code>
    </td></tr></table>
    </td></tr></table><br />

		Set the waterlevel of a player in each turn<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td><strong>TRUE</strong> if successed, <strong>FALSE</strong> if failed.</td>
  </tr>
</table>
</div>
    <br /><br />
	
    		<h4>Parameters</h4>
    <table border="0" cellspacing="0" cellpadding="0">
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$game_id</b>&nbsp;&nbsp;</td>
        <td>Game ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$user_id</b>&nbsp;&nbsp;</td>
        <td>User ID.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$round</b>&nbsp;&nbsp;</td>
        <td>Round of game.</td>
      </tr>
		      <tr>
        <td class="type">int&nbsp;&nbsp;</td>
        <td><b>$waterlevel</b>&nbsp;&nbsp;</td>
        <td>Waterlevel to be setted.</td>
      </tr>
				</table>
    	<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
	</div>

        <div class="credit">
		    <hr />
		    Documentation generated on Fri, 06 May 2011 03:43:24 +0000 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>